package com.ysy.wiki.controller;

import com.ysy.wiki.domain.Demo;
import com.ysy.wiki.service.DemoService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class DemoController {


    @Resource
    private DemoService DemoService;

    @GetMapping("/Demo/list")
    public List<Demo> list(){
        return DemoService.list();
    }

}


